﻿using System.Windows;

namespace MvvmFx.Common.DataTemplateSelector
{
    /// <summary>
    /// The DataTemplateSelectorBase class.
    /// </summary>
    public abstract class DataTemplateSelectorBase
    {
        /// <summary>
        /// Select the data template applicable to the specified item.
        /// </summary>
        /// <param name="item">The item to determine the associated data template.</param>
        /// <param name="container">The container which consists of the data templates to select from.</param>
        /// <returns>The data template associated to the specified item.</returns>
        public abstract DataTemplate SelectTemplate(object item, DependencyObject container);
    }
}